
package com.hlkj.pay.app.merchant.ext.impl.huifu.dto.order;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import com.hlkj.pay.app.merchant.ext.impl.huifu.constant.HuiFuConstant;

import lombok.Data;

/**
 * @author HlpayTeam
 * @date 2024/10/17 11:37
 */
@Data
public class HuiFuPayOrderResponseDto {

    private String resp_code;

    private String resp_desc;

    private String huifu_id;
    private String product_id;

    public boolean isSuccess() {
        return HuiFuConstant.PAY_ORDER_SUCCESS_CODE.equals(resp_code)||HuiFuConstant.SUCCESS_CODE.equals(resp_code);
    }
    
    public boolean isDoing() {
        return HuiFuConstant.DOING_CODE.equals(resp_code);
    }
}
